package cn.wolfcode.mapper;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper {
    List<Permission> selRolePermission(Long roleId);

    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);


    List<Permission> selForList(QueryObject qo);

    void insertPermissionBatch(@Param("expressionList") List<Permission> expressionList);

    //根据员工ID查找员工权限集合
    List<String> selEmployeePermissionById(Long id);

    List<String> selectPermissionsByStudentId(Long id);
}